**Housekeeping
clear all
cap log close
log using ${rep_root}/logs/reg_balance.log, text replace
set more off

local cutoff = 50
local seed = 9999 
local case_lb = `cutoff'

local covarsmin d_mo_* d_dist_*
local covars vic_female_any vic_white_any acc_white acc_male acc_old cat_3 cat_4 d_mo_* d_dist_* arrests_pre complaints_pre force_pre any_prior_complaint tenure
 
 
*****************
**BRING IN CASE STATUS + COMPLAINTS DATA AND APPLY DATA RESTRICTION
***************** 
 
do ${rep_root}/code/data_restrict.do
 
*****************
**MERGE WITH OUTCOMES DATA
***************** 
merge 1:1 cr_id acc_id using ${rep_root}/data/outcomes, keep(3) nogen

 
*****************
**DEFINE TREATMENT AND MAKE COVARIATES
***************** 
 

**Drop investigators without enough cases
tab inv_id
sort inv_id 
by inv_id: gen inv_ct = _N
drop if inv_ct<`case_lb'
tab inv_id intake_yr

**Define some covariates
gen po = acc_rank == "POLICE OFFICER"
gen minor_inj = vic_inj_1<=1
gen vic_old = (year(inc_complaint_dt_1) - vic_byr_oldest)>=35 & !missing(vic_byr_oldest)
gen acc_old = acc_age>=35 & !missing(acc_age)
gen cat_3 = acc_cat==3
gen cat_4 = acc_cat==4
 
   
  

forvalues i = 1/25{
	gen d_dist_`i' = inc_district_1==`i'
}
forvalues yr = 2006/2008{
	gen d_yr_`yr' = intake_yr==`yr'

	forvalues m = 1/12{
		gen d_mo_yr_`m'_`yr' = intake_yr==`yr' & intake_mo==`m'
	}
	
}
forvalues yr = 2014/2018{
	gen d_yr_`yr' = intake_yr==`yr'
	
	forvalues m = 1/12{
		gen d_mo_yr_`m'_`yr' = intake_yr==`yr' & intake_mo==`m'
	}
}

gen d_noaff = finding_cd=="NO AFFIDAVIT"
gen d_unfound = finding_cd=="UNFOUNDED"
gen d_nosus = finding_cd=="NOT SUSTAINED"
gen d_exon = finding_cd=="EXONERATED"
gen d_sus = finding_cd=="SUSTAINED"
gen d_addlinv = finding_cd=="ADDITIONAL INVESTIGATION REQUESTED"

qui foreach var in vic_female_any vic_white_any acc_white acc_male acc_old cat_3 cat_4 arrests_pre complaints_pre force_pre any_prior_complaint tenure arrests_postc1_3 serious_postc1_3 complaints_postc1_3 arrests_postc4_12 serious_postc4_12 complaints_postc4_12 arrests_posty2 serious_posty2 complaints_posty2 d_noaff d_unfound d_nosus d_exon d_sus d_addlinv{
	sum `var'
	*local temp_m = r(mean)
	local ss_`var'_m : di %6.3f r(mean)
	*local temp_sd = r(sd)
	local ss_`var'_sd : di %6.3f r(sd)
}

sort mid
by mid: gen mid_ct = _N
by mid: gen mid_mark = _n==1
tab mid_mark
sum mid_ct if mid_mark==1
tab mid_ct if mid_mark==1
drop mid_ct mid_mark

sort cr_id
by cr_id: gen cr_ct = _N
by cr_id: gen cr_mark = _n==1
tab cr_mark
sum cr_ct if cr_mark==1
tab cr_ct if cr_mark==1
drop cr_ct cr_mark

**Define treatment
 

gen treat_affidavit = finding_cd != "NO AFFIDAVIT" 
gen treat_sustain = finding_cd == "SUSTAINED"   

gen era = inrange(intake_yr, 2006, 2009) 

foreach t in treat_affidavit treat_sustain{

**Create LOM
capture drop resid mo_resid cr_resid mo_cr_resid cr_ct mo_cr_ct inv_tot_resid mo_inv_tot_resid case mo_case inv_ct2 mo_inv_ct2
qui reg `t' `covars'
*qui reg `t' d_mo_*
predict resid, residuals

sort cr_id
by cr_id: egen cr_resid = total(resid)
by cr_id: gen cr_ct = _N

*sort inv_id intake_yr intake_mo
sort inv_id intake_yr
gen case = 1
by inv_id intake_yr: egen inv_tot_resid = total(resid)
by inv_id intake_yr: egen inv_ct2 = total(case)
gen lom_`t' = (inv_tot_resid - cr_resid)/(inv_ct2-cr_ct)

**Just month effects
qui reg `t' d_mo_*
predict mo_resid, residuals

sort cr_id
by cr_id: egen mo_cr_resid = total(mo_resid)
by cr_id: gen mo_cr_ct = _N

*sort inv_id intake_yr intake_mo
sort inv_id intake_yr
gen mo_case = 1
by inv_id intake_yr: egen mo_inv_tot_resid = total(mo_resid)
by inv_id intake_yr: egen mo_inv_ct2 = total(mo_case)
gen mo_lom_`t' = (mo_inv_tot_resid - mo_cr_resid)/(mo_inv_ct2 - mo_cr_ct)

sort inv_id
by inv_id: sum lom_`t'
}
 

*****************
**STORE FIRST STAGE
*****************  


**First stage
foreach t in treat_affidavit treat_sustain{

sum `t'
local first_mean = r(mean)

reg `t' lom_`t' `covars', cluster(inv_id)
local first = _b[lom_`t']
local first_se = _se[lom_`t']
local first_N = e(N)
boottest lom_`t', weight(webb) nograph seed(`seed')
local first_f = r(t)^2
local first_p = r(p)

local first : di %6.3f `first'
local first_f : di %6.3f `first_f'

local first_mean_`t' : di %6.3f `first_mean'
local first_`t' : di %6.3f `first'
local first_se_`t' : di %6.3f `first_se'
local first_p_`t' : di %6.3f `first_p'
glo first_star_`t' = cond(`first_p_`t'' <0.01, "***", cond(`first_p_`t'' <0.05, "**", cond(`first_p_`t'' <0.1, "*", "")))
local first_f_`t' : di %6.3f `first_f'
local first_N_`t' : di %6.0f `first_N'
 
}
 
gen inc_dow = dow(inc_start_dt_1)
forvalues d = 0/6{
	gen d_inc_dow_`d' = inc_dow==`d'
}

gen any_p_c = any_prior_complaint
**Regression balance
local balance_list vic_female_any vic_white_any vic_old acc_white acc_male acc_old cat_3 cat_4 arrests_pre complaints_pre force_pre any_p_c tenure d_dist_1 d_dist_2 d_dist_3 d_dist_4 d_dist_5 d_dist_6 d_dist_7 d_dist_8 d_dist_9 d_dist_10 d_dist_11 d_dist_12 d_dist_13 d_dist_14 d_dist_15 d_dist_16 d_dist_17 d_dist_18 d_dist_19 d_dist_20 d_dist_21 d_dist_22 d_dist_23 d_dist_24 d_dist_25 d_inc_dow_0 d_inc_dow_1 d_inc_dow_2 d_inc_dow_3 d_inc_dow_4 d_inc_dow_5 d_inc_dow_6 

local balance_list_for_after vic_female_any vic_white_any vic_old acc_white acc_male acc_old cat_3 cat_4 arrests_pre complaints_pre force_pre any_p_c tenure d_dist_1 d_dist_2 d_dist_3 d_dist_4 d_dist_5 d_dist_6 d_dist_7 d_dist_8 d_dist_9 d_dist_10 d_dist_11 d_dist_12 d_dist_14 d_dist_15 d_dist_16 d_dist_17 d_dist_18 d_dist_19 d_dist_20 d_dist_22 d_dist_24 d_dist_25 d_inc_dow_0 d_inc_dow_1 d_inc_dow_2 d_inc_dow_3 d_inc_dow_4 d_inc_dow_5 d_inc_dow_6 

egen inv_id_yr_balance = group(inv_id intake_yr)
forvalues i = 1/42{
	gen d_inv_id_`i' = inv_id_yr_balance==`i'
}
local test_arg d_inv_id_1=d_inv_id_2=d_inv_id_3=d_inv_id_4=d_inv_id_5=d_inv_id_6=d_inv_id_7=d_inv_id_8=d_inv_id_9=d_inv_id_10=d_inv_id_11=d_inv_id_12=d_inv_id_13=d_inv_id_14=d_inv_id_15=d_inv_id_16=d_inv_id_17=d_inv_id_18=d_inv_id_19=d_inv_id_20=d_inv_id_21=d_inv_id_22=d_inv_id_23=d_inv_id_24=d_inv_id_25=d_inv_id_26=d_inv_id_27=d_inv_id_28=d_inv_id_29=d_inv_id_30=d_inv_id_31=d_inv_id_32=d_inv_id_33=d_inv_id_34=d_inv_id_35=d_inv_id_36=d_inv_id_37=d_inv_id_38=d_inv_id_39=d_inv_id_40=d_inv_id_41=d_inv_id_42 

local test_arg_b d_inv_id_3=d_inv_id_4=d_inv_id_5=d_inv_id_6=d_inv_id_7=d_inv_id_10=d_inv_id_11=d_inv_id_12=d_inv_id_17=d_inv_id_18=d_inv_id_21=d_inv_id_22=d_inv_id_23=d_inv_id_24=d_inv_id_25=d_inv_id_26=d_inv_id_27=d_inv_id_28=d_inv_id_32=d_inv_id_33=d_inv_id_37=d_inv_id_39=d_inv_id_40

local test_arg_a d_inv_id_1=d_inv_id_2=d_inv_id_7=d_inv_id_8=d_inv_id_9=d_inv_id_13=d_inv_id_14=d_inv_id_15=d_inv_id_16=d_inv_id_18=d_inv_id_19=d_inv_id_28=d_inv_id_29=d_inv_id_30=d_inv_id_31=d_inv_id_33=d_inv_id_34=d_inv_id_35=d_inv_id_41=d_inv_id_42 

save ${rep_root}/data/reg_balance_playground, replace 

qui foreach t in treat_affidavit treat_sustain{
 	if("`t'"=="treat_affidavit"){
		local t_short t_a
	}
	if("`t'"=="treat_penalty"){
		local t_short t_p
	}
	if("`t'"=="treat_sustain"){)
		local t_short t_s
	}
	
	reg `t' `covars'
	predict pred, xb
	
	*SEPARATE TESTS
	foreach var in `balance_list' pred{
		noisily display("`var'")
		sum `var'
		local bal_`var'_ymean = r(mean) 
		local bal_`var'_ymean: di %6.3f `bal_`var'_ymean'
		
		**STANDARD
		reg lom_`t' `var' d_mo_*, cluster(inv_id)
		local bal_`var'_`t_short'_b = _b[`var']
		boottest `var', weight(webb) nograph seed(`seed')
		local bal_`var'_`t_short'_p = r(p)
		
		local bal_`var'_`t_short'_b: di %6.3f `bal_`var'_`t_short'_b'
		local bal_`var'_`t_short'_p: di %6.3f `bal_`var'_`t_short'_p'
		
		**FIXED EFFECTS
		reg `var' d_mo_* d_inv_id_*, cluster(inv_id)
		boottest `test_arg', weight(webb) nograph seed(`seed')
		*test `test_arg' 
		
		local bal_`var'_fe_`t_short'_F = r(t)
		local bal_`var'_fe_`t_short'_p = r(p)
		local bal_`var'_fe_`t_short'_F: di %6.3f `bal_`var'_fe_`t_short'_F'
		local bal_`var'_fe_`t_short'_p: di %6.3f `bal_`var'_fe_`t_short'_p'
			
		**MO ONLY LOM
		reg mo_lom_`t' `var' d_mo_*, cluster(inv_id)
		local mbal_`var'_`t_short'_b = _b[`var']
		boottest `var', weight(webb) nograph seed(`seed')
		local mbal_`var'_`t_short'_p = r(p)
		
		local mbal_`var'_`t_short'_b: di %6.3f `mbal_`var'_`t_short'_b'
		local mbal_`var'_`t_short'_p: di %6.3f `mbal_`var'_`t_short'_p'
		
		**BEFORE LAQUAN
		sum `var' if intake_yearmo<ym(2015,11)
		local bbal_`var'_ymean = r(mean) 
		local bbal_`var'_ymean: di %6.3f `bbal_`var'_ymean'
		
		reg lom_`t' `var' d_mo_* if intake_yearmo<ym(2015,11), cluster(inv_id)
		local bbal_`var'_`t_short'_b = _b[`var']
		boottest `var', weight(webb) nograph seed(`seed')
		local bbal_`var'_`t_short'_p = r(p)
		
		local bbal_`var'_`t_short'_b: di %6.3f `bbal_`var'_`t_short'_b'
		local bbal_`var'_`t_short'_p: di %6.3f `bbal_`var'_`t_short'_p'
		
		reg `var' d_mo_* d_inv_id_* if intake_yearmo<ym(2015,11), cluster(inv_id)
		boottest `test_arg_b', weight(webb) nograph seed(`seed')
		*test `test_arg' 
		
		local bbal_`var'_fe_`t_short'_F = r(t)
		local bbal_`var'_fe_`t_short'_p = r(p)
		local bbal_`var'_fe_`t_short'_F: di %6.3f `bbal_`var'_fe_`t_short'_F'
		local bbal_`var'_fe_`t_short'_p: di %6.3f `bbal_`var'_fe_`t_short'_p'
		
		**AFTER LAQUAN
		if "`var'"!="d_dist_13" & "`var'"!="d_dist_21" & "`var'"!="d_dist_23" {
			sum `var' if intake_yearmo>=ym(2015,11)
			local abal_`var'_ymean = r(mean) 
			local abal_`var'_ymean: di %6.3f `abal_`var'_ymean'
		
			reg lom_`t' `var' d_mo_* if intake_yearmo>=ym(2015,11), cluster(inv_id)
			local abal_`var'_`t_short'_b = _b[`var']
			boottest `var', weight(webb) nograph seed(`seed')
			local abal_`var'_`t_short'_p = r(p)
			
			local abal_`var'_`t_short'_b: di %6.3f `abal_`var'_`t_short'_b'
			local abal_`var'_`t_short'_p: di %6.3f `abal_`var'_`t_short'_p'
			
			reg `var' d_mo_* d_inv_id_* if intake_yearmo>=ym(2015,11), cluster(inv_id)
			boottest `test_arg_a', weight(webb) nograph seed(`seed')
			*test `test_arg' 
			
			local abal_`var'_fe_`t_short'_F = r(t)
			local abal_`var'_fe_`t_short'_p = r(p)
			local abal_`var'_fe_`t_short'_F: di %6.3f `abal_`var'_fe_`t_short'_F'
			local abal_`var'_fe_`t_short'_p: di %6.3f `abal_`var'_fe_`t_short'_p'
		}
	}
	
	**JOINT TEST
	
	**STANDARD
	reg lom_`t' `balance_list' d_mo_*, cluster(inv_id)
	boottest `balance_list', weight(webb) nograph seed(`seed')
	local bal_joint_`t_short'_F = r(F)
	local bal_joint_`t_short'_p = r(p)
	local bal_joint_`t_short'_F: di %6.3f `bal_joint_`t_short'_F'
	local bal_joint_`t_short'_p: di %6.3f `bal_joint_`t_short'_p'
	
	**MO ONLY LOM
	reg mo_lom_`t' `balance_list' d_mo_*, cluster(inv_id)
	boottest `balance_list', weight(webb) nograph seed(`seed')
	local mbal_joint_`t_short'_F = r(F)
	local mbal_joint_`t_short'_p = r(p)
	local mbal_joint_`t_short'_F: di %6.3f `mbal_joint_`t_short'_F'
	local mbal_joint_`t_short'_p: di %6.3f `mbal_joint_`t_short'_p'
	
	**BEFORE LAQUAN
	reg lom_`t' `balance_list' d_mo_* if intake_yearmo<ym(2015,11), cluster(inv_id)
	boottest `balance_list', weight(webb) nograph seed(`seed')
	local bbal_joint_`t_short'_F = r(F)
	local bbal_joint_`t_short'_p = r(p)
	local bbal_joint_`t_short'_F: di %6.3f `bbal_joint_`t_short'_F'
	local bbal_joint_`t_short'_p: di %6.3f `bbal_joint_`t_short'_p'
	
	**AFTER LAQAUAN
	reg lom_`t' `balance_list_for_after' d_mo_* if intake_yearmo>=ym(2015,11), cluster(inv_id)
	boottest `balance_list_for_after', weight(webb) nograph seed(`seed')
	local abal_joint_`t_short'_F = r(F)
	local abal_joint_`t_short'_p = r(p)
	local abal_joint_`t_short'_F: di %6.3f `abal_joint_`t_short'_F'
	local abal_joint_`t_short'_p: di %6.3f `abal_joint_`t_short'_p'
	
	drop pred 
 }
 
 ******************
**OUTPUT REGRESSION BALANCE
*******************

 
texdoc init ${rep_root}/output/tables/reg_balance.tex, replace force
tex \begin{tabular}{l*{7}{c}}
tex \hline\hline
tex \multicolumn{1}{c}{Covariate}&\multicolumn{1}{c}{LOM}&\multicolumn{1}{c}{FEs}&\multicolumn{1}{c}{Y Mean}&\multicolumn{1}{c}{Covariate}&\multicolumn{1}{c}{LOM}&\multicolumn{1}{c}{FEs}&\multicolumn{1}{c}{Y  Mean} \\
tex \hline
tex Any Female Complainant & `bal_vic_female_any_t_a_b' & `bal_vic_female_any_fe_t_a_F' & `bal_vic_female_any_ymean' & District 1 & `bal_d_dist_1_t_a_b' & `bal_d_dist_1_fe_t_a_F' & `bal_d_dist_1_ymean' \\
tex 	& [`bal_vic_female_any_t_a_p'] & [`bal_vic_female_any_fe_t_a_p'] & & & [`bal_d_dist_1_t_a_p'] & [`bal_d_dist_1_fe_t_a_p'] \\
tex Any White Complainant & `bal_vic_white_any_t_a_b' & `bal_vic_white_any_fe_t_a_F' & `bal_vic_white_any_ymean' & District 2 & `bal_d_dist_2_t_a_b' & `bal_d_dist_2_fe_t_a_F' & `bal_d_dist_2_ymean' \\
tex		& [`bal_vic_white_any_t_a_p'] & [`bal_vic_white_any_fe_t_a_p'] & & & [`bal_d_dist_2_t_a_p'] & [`bal_d_dist_2_fe_t_a_p'] \\
tex Any Complainant 35 or Older & `bal_vic_old_t_a_b' & `bal_vic_old_fe_t_a_F' & `bal_vic_old_ymean' & District 3 & `bal_d_dist_3_t_a_b' & `bal_d_dist_3_fe_t_a_F' & `bal_d_dist_3_ymean' \\
tex		& [`bal_vic_old_t_a_p'] & [`bal_vic_old_fe_t_a_p'] & & & [`bal_d_dist_3_t_a_p'] & [`bal_d_dist_3_fe_t_a_p'] \\
tex Accused Officer White & `bal_acc_white_t_a_b' & `bal_acc_white_fe_t_a_F' & `bal_acc_white_ymean' & District 4 & `bal_d_dist_4_t_a_b' & `bal_d_dist_4_fe_t_a_F' & `bal_d_dist_4_ymean' \\
tex 	& [`bal_acc_white_t_a_p'] & [`bal_acc_white_fe_t_a_p'] & & & [`bal_d_dist_4_t_a_p'] & [`bal_d_dist_4_fe_t_a_p'] \\
tex Accused Officer Male & `bal_acc_male_t_a_b' & `bal_acc_male_fe_t_a_F' & `bal_acc_male_ymean' & District 5 & `bal_d_dist_5_t_a_b' & `bal_d_dist_5_fe_t_a_F' & `bal_d_dist_5_ymean' \\
tex 	& [`bal_acc_male_t_a_p'] & [`bal_acc_male_fe_t_a_p'] & & & [`bal_d_dist_5_t_a_p'] & [`bal_d_dist_5_fe_t_a_p'] \\
tex Accused Officer 35+ & `bal_acc_old_t_a_b' & `bal_acc_old_fe_t_a_F' & `bal_acc_old_ymean' & District 6 & `bal_d_dist_6_t_a_b' & `bal_d_dist_6_fe_t_a_F' & `bal_d_dist_6_ymean' \\
tex 	& [`bal_acc_old_t_a_p'] & [`bal_acc_old_fe_t_a_p'] & & & [`bal_d_dist_6_t_a_p'] & [`bal_d_dist_6_fe_t_a_p'] \\
tex Accused Officer Tenure & `bal_tenure_t_a_b' & `bal_tenure_fe_t_a_F' & `bal_tenure_ymean' & District 7 & `bal_d_dist_7_t_a_b' & `bal_d_dist_7_fe_t_a_F' & `bal_d_dist_7_ymean' \\
tex 	& [`bal_tenure_t_a_p'] & [`bal_tenure_fe_t_a_p'] & & & [`bal_d_dist_7_t_a_p'] & [`bal_d_dist_7_fe_t_a_p'] \\
tex Civil Rights Complaint & `bal_cat_3_t_a_b' & `bal_cat_3_fe_t_a_F' & `bal_cat_3_ymean' & District 8 & `bal_d_dist_8_t_a_b' & `bal_d_dist_8_fe_t_a_F' & `bal_d_dist_8_ymean' \\
tex 	& [`bal_cat_3_t_a_p'] & [`bal_cat_3_fe_t_a_p'] & & & [`bal_d_dist_8_t_a_p'] & [`bal_d_dist_8_fe_t_a_p'] \\
tex Force Complaint & `bal_cat_4_t_a_b' & `bal_cat_4_fe_t_a_F' & `bal_cat_4_ymean' & District 9 & `bal_d_dist_9_t_a_b' & `bal_d_dist_9_fe_t_a_F' & `bal_d_dist_9_ymean' \\
tex 	& [`bal_cat_4_t_a_p'] & [`bal_cat_4_fe_t_a_p'] & & & [`bal_d_dist_9_t_a_p'] & [`bal_d_dist_9_fe_t_a_p'] \\
tex Any Prior Complaints & `bal_any_p_c_t_a_b' & `bal_any_p_c_fe_t_a_F' & `bal_any_p_c_ymean' & District 10 & `bal_d_dist_10_t_a_b' & `bal_d_dist_10_fe_t_a_F' & `bal_d_dist_10_ymean' \\
tex 	& [`bal_any_p_c_t_a_p'] & [`bal_any_p_c_fe_t_a_p'] & & & [`bal_d_dist_10_t_a_p'] & [`bal_d_dist_10_fe_t_a_p'] \\
tex Monthly Arrests in Past Year & `bal_arrests_pre_t_a_b' & `bal_arrests_pre_fe_t_a_F' & `bal_arrests_pre_ymean' & District 11 & `bal_d_dist_11_t_a_b' & `bal_d_dist_11_fe_t_a_F' & `bal_d_dist_11_ymean' \\
tex 	& [`bal_arrests_pre_t_a_p'] & [`bal_arrests_pre_fe_t_a_p'] & & & [`bal_d_dist_11_t_a_p'] & [`bal_d_dist_11_fe_t_a_p'] \\
tex Monthly Complaints in Past Year & `bal_complaints_pre_t_a_b' & `bal_complaints_pre_fe_t_a_F' & `bal_complaints_pre_ymean' & District 12 & `bal_d_dist_12_t_a_b' & `bal_d_dist_12_fe_t_a_F' & `bal_d_dist_12_ymean' \\
tex 	& [`bal_complaints_pre_t_a_p'] & [`bal_complaints_pre_fe_t_a_p'] & & & [`bal_d_dist_12_t_a_p'] & [`bal_d_dist_12_fe_t_a_p'] \\
tex Incident on Sunday & `bal_d_inc_dow_0_t_a_b' & `bal_d_inc_dow_0_fe_t_a_F' & `bal_d_inc_dow_0_ymean' & District 13 & `bal_d_dist_13_t_a_b' & `bal_d_dist_13_fe_t_a_F' & `bal_d_dist_13_ymean' \\
tex 	& [`bal_d_inc_dow_0_t_a_p'] & [`bal_d_inc_dow_0_fe_t_a_p'] & & & [`bal_d_dist_13_t_a_p'] & [`bal_d_dist_13_fe_t_a_p'] \\
tex Incident on Monday & `bal_d_inc_dow_1_t_a_b' & `bal_d_inc_dow_1_fe_t_a_F' & `bal_d_inc_dow_1_ymean' & District 14 & `bal_d_dist_14_t_a_b' & `bal_d_dist_14_fe_t_a_F' & `bal_d_dist_14_ymean' \\
tex 	& [`bal_d_inc_dow_1_t_a_p'] & [`bal_d_inc_dow_1_fe_t_a_p'] & & & [`bal_d_dist_14_t_a_p'] & [`bal_d_dist_14_fe_t_a_p'] \\
tex Incident on Tuesday & `bal_d_inc_dow_2_t_a_b' & `bal_d_inc_dow_2_fe_t_a_F' & `bal_d_inc_dow_2_ymean' & District 15 & `bal_d_dist_15_t_a_b' & `bal_d_dist_15_fe_t_a_F' & `bal_d_dist_15_ymean' \\
tex 	& [`bal_d_inc_dow_2_t_a_p'] & [`bal_d_inc_dow_2_fe_t_a_p'] & & & [`bal_d_dist_15_t_a_p'] & [`bal_d_dist_15_fe_t_a_p'] \\
tex Incident on Wednesday & `bal_d_inc_dow_3_t_a_b' & `bal_d_inc_dow_3_fe_t_a_F' & `bal_d_inc_dow_3_ymean' & District 16 & `bal_d_dist_16_t_a_b' & `bal_d_dist_16_fe_t_a_F' & `bal_d_dist_16_ymean' \\
tex 	& [`bal_d_inc_dow_3_t_a_p'] & [`bal_d_inc_dow_3_fe_t_a_p'] & & & [`bal_d_dist_16_t_a_p'] & [`bal_d_dist_16_fe_t_a_p'] \\
tex Incident on Thursday & `bal_d_inc_dow_4_t_a_b' & `bal_d_inc_dow_4_fe_t_a_F' & `bal_d_inc_dow_4_ymean' & District 17 & `bal_d_dist_17_t_a_b' & `bal_d_dist_17_fe_t_a_F' & `bal_d_dist_17_ymean' \\
tex 	& [`bal_d_inc_dow_4_t_a_p'] & [`bal_d_inc_dow_4_fe_t_a_p'] & & & [`bal_d_dist_17_t_a_p'] & [`bal_d_dist_17_fe_t_a_p'] \\
tex Incident on Friday & `bal_d_inc_dow_5_t_a_b' & `bal_d_inc_dow_5_fe_t_a_F' & `bal_d_inc_dow_5_ymean' & District 18 & `bal_d_dist_18_t_a_b' & `bal_d_dist_18_fe_t_a_F' & `bal_d_dist_18_ymean' \\
tex 	& [`bal_d_inc_dow_5_t_a_p'] & [`bal_d_inc_dow_5_fe_t_a_p'] & & & [`bal_d_dist_18_t_a_p'] & [`bal_d_dist_18_fe_t_a_p'] \\
tex Incident on Saturday & `bal_d_inc_dow_6_t_a_b' & `bal_d_inc_dow_6_fe_t_a_F' & `bal_d_inc_dow_6_ymean' & District 19 & `bal_d_dist_19_t_a_b' & `bal_d_dist_19_fe_t_a_F' & `bal_d_dist_19_ymean' \\
tex 	& [`bal_d_inc_dow_6_t_a_p'] & [`bal_d_inc_dow_6_fe_t_a_p'] & & & [`bal_d_dist_19_t_a_p'] & [`bal_d_dist_19_fe_t_a_p'] \\
tex District 20 & `bal_d_dist_20_t_a_b' & `bal_d_dist_20_fe_t_a_F' & `bal_d_dist_20_ymean' & District 21 & `bal_d_dist_21_t_a_b' & `bal_d_dist_21_fe_t_a_F' & `bal_d_dist_21_ymean' \\
tex 	& [`bal_d_dist_20_t_a_p'] & [`bal_d_dist_20_fe_t_a_p'] & & & [`bal_d_dist_21_t_a_p'] & [`bal_d_dist_21_fe_t_a_p'] \\
tex District 22 & `bal_d_dist_22_t_a_b' & `bal_d_dist_22_fe_t_a_F' & `bal_d_dist_22_ymean' & District 23 & `bal_d_dist_23_t_a_b' & `bal_d_dist_23_fe_t_a_F' & `bal_d_dist_23_ymean' \\
tex 	& [`bal_d_dist_22_t_a_p'] & [`bal_d_dist_22_fe_t_a_p'] & & & [`bal_d_dist_23_t_a_p'] & [`bal_d_dist_23_fe_t_a_p'] \\
tex District 24 & `bal_d_dist_24_t_a_b' & `bal_d_dist_24_fe_t_a_F' & `bal_d_dist_24_ymean' & District 25 & `bal_d_dist_25_t_a_b' & `bal_d_dist_25_fe_t_a_F' & `bal_d_dist_25_ymean' \\
tex 	& [`bal_d_dist_24_t_a_p'] & [`bal_d_dist_24_fe_t_a_p'] & & &  [`bal_d_dist_25_t_a_p'] & [`bal_d_dist_25_fe_t_a_p'] \\
tex \hline
tex Joint F-Test & `bal_joint_t_a_F' & \\
tex 	& [`bal_joint_t_a_p'] & \\
tex \hline\hline
tex \end{tabular}
texdoc close

texdoc init ${rep_root}/output/tables/reg_balance_mo.tex, replace force
tex \begin{tabular}{l*{3}{c}}
tex \hline\hline
tex \multicolumn{1}{c}{Covariate}&\multicolumn{1}{c}{LOM}&\multicolumn{1}{c}{Covariate}&\multicolumn{1}{c}{LOM} \\
tex \hline
tex Any Female Complainant & `mbal_vic_female_any_t_a_b' &  District 1 & `mbal_d_dist_1_t_a_b' \\
tex 	& [`mbal_vic_female_any_t_a_p'] & & [`mbal_d_dist_1_t_a_p'] \\
tex Any White Complainant & `mbal_vic_white_any_t_a_b' & District 2 & `mbal_d_dist_2_t_a_b' \\
tex		& [`mbal_vic_white_any_t_a_p'] & & [`mbal_d_dist_2_t_a_p'] \\
tex Any Complainant 35 or Older & `mbal_vic_old_t_a_b' & District 3 & `mbal_d_dist_3_t_a_b' \\
tex		& [`mbal_vic_old_t_a_p'] & & [`mbal_d_dist_3_t_a_p'] \\
tex Accused Officer White & `mbal_acc_white_t_a_b' & District 4 & `mbal_d_dist_4_t_a_b' \\
tex 	& [`mbal_acc_white_t_a_p'] & & [`mbal_d_dist_4_t_a_p'] \\
tex Accused Officer Male & `mbal_acc_male_t_a_b' & District 5 & `mbal_d_dist_5_t_a_b' \\
tex 	& [`mbal_acc_male_t_a_p'] & & [`mbal_d_dist_5_t_a_p'] \\
tex Accused Officer 35+ & `mbal_acc_old_t_a_b' & District 6 & `mbal_d_dist_6_t_a_b' \\
tex 	& [`mbal_acc_old_t_a_p'] & & [`mbal_d_dist_6_t_a_p'] \\
tex Accused Officer Tenure & `mbal_tenure_t_a_b' & District 7 & `mbal_d_dist_7_t_a_b' \\
tex 	& [`mbal_tenure_t_a_p'] & & [`mbal_d_dist_7_t_a_p'] \\
tex Civil Rights Complaint & `mbal_cat_3_t_a_b' & District 8 & `mbal_d_dist_8_t_a_b' \\
tex 	& [`mbal_cat_3_t_a_p'] & & [`mbal_d_dist_8_t_a_p'] \\
tex Force Complaint & `mbal_cat_4_t_a_b' & District 9 & `mbal_d_dist_9_t_a_b' \\
tex 	& [`mbal_cat_4_t_a_p'] & & [`mbal_d_dist_9_t_a_p'] \\
tex Any Prior Complaints & `mbal_any_p_c_t_a_b' & District 10 & `mbal_d_dist_10_t_a_b' \\
tex 	& [`mbal_any_p_c_t_a_p'] & & [`mbal_d_dist_10_t_a_p'] \\
tex Monthly Arrests in Past Year & `mbal_arrests_pre_t_a_b' & District 11 & `mbal_d_dist_11_t_a_b' \\
tex 	& [`mbal_arrests_pre_t_a_p'] & & [`mbal_d_dist_11_t_a_p'] \\
tex Monthly Complaints in Past Year & `mbal_complaints_pre_t_a_b' & District 12 & `mbal_d_dist_12_t_a_b' \\
tex 	& [`mbal_complaints_pre_t_a_p'] & & [`mbal_d_dist_12_t_a_p'] \\
tex Incident on Sunday & `mbal_d_inc_dow_0_t_a_b' & District 13 & `mbal_d_dist_13_t_a_b' \\
tex 	& [`mbal_d_inc_dow_0_t_a_p'] & & [`mbal_d_dist_13_t_a_p'] \\
tex Incident on Monday & `mbal_d_inc_dow_1_t_a_b' & District 14 & `mbal_d_dist_14_t_a_b' \\
tex 	& [`mbal_d_inc_dow_1_t_a_p'] & & [`mbal_d_dist_14_t_a_p'] \\
tex Incident on Tuesday & `mbal_d_inc_dow_2_t_a_b' & District 15 & `mbal_d_dist_15_t_a_b' \\
tex 	& [`mbal_d_inc_dow_2_t_a_p'] & & [`mbal_d_dist_15_t_a_p'] \\
tex Incident on Wednesday & `mbal_d_inc_dow_3_t_a_b' & District 16 & `mbal_d_dist_16_t_a_b' \\
tex 	& [`mbal_d_inc_dow_3_t_a_p'] & & [`mbal_d_dist_16_t_a_p'] \\
tex Incident on Thursday & `mbal_d_inc_dow_4_t_a_b' & District 17 & `mbal_d_dist_17_t_a_b' \\
tex 	& [`mbal_d_inc_dow_4_t_a_p'] & & [`mbal_d_dist_17_t_a_p'] \\
tex Incident on Friday & `mbal_d_inc_dow_5_t_a_b' & District 18 & `mbal_d_dist_18_t_a_b' \\
tex 	& [`mbal_d_inc_dow_5_t_a_p'] & & [`mbal_d_dist_18_t_a_p'] \\
tex Incident on Saturday & `mbal_d_inc_dow_6_t_a_b' & District 19 & `mbal_d_dist_19_t_a_b' \\
tex 	& [`mbal_d_inc_dow_6_t_a_p'] & & [`mbal_d_dist_19_t_a_p'] \\
tex  District 20 & `mbal_d_dist_20_t_a_b' & District 21 & `mbal_d_dist_21_t_a_b' \\
tex 	& [`mbal_d_dist_20_t_a_p'] & & [`mbal_d_dist_21_t_a_p'] \\
tex District 22 & `mbal_d_dist_22_t_a_b' & District 23 & `mbal_d_dist_23_t_a_b' \\
tex 	& [`mbal_d_dist_22_t_a_p'] & & [`mbal_d_dist_23_t_a_p'] \\
tex District 24 & `mbal_d_dist_24_t_a_b' & District 25 & `mbal_d_dist_25_t_a_b' \\
tex 	& [`mbal_d_dist_24_t_a_p'] & &  [`mbal_d_dist_25_t_a_p'] \\
tex \hline
tex Joint F-Test & `mbal_joint_t_a_F' & \\
tex 	& [`mbal_joint_t_a_p'] & \\
tex \hline\hline
tex \end{tabular}
texdoc close

texdoc init ${rep_root}/output/tables/reg_balance_before_laquan.tex, replace force
tex \begin{tabular}{l*{7}{c}}
tex \hline\hline
tex \multicolumn{1}{c}{Covariate}&\multicolumn{1}{c}{LOM}&\multicolumn{1}{c}{FEs}&\multicolumn{1}{c}{Y Mean}&\multicolumn{1}{c}{Covariate}&\multicolumn{1}{c}{LOM}&\multicolumn{1}{c}{FEs}&\multicolumn{1}{c}{Y  Mean} \\
tex \hline
tex Any Female Complainant & `bbal_vic_female_any_t_a_b' & `bbal_vic_female_any_fe_t_a_F' & `bbal_vic_female_any_ymean' & District 1 & `bbal_d_dist_1_t_a_b' & `bbal_d_dist_1_fe_t_a_F' & `bbal_d_dist_1_ymean' \\
tex 	& [`bbal_vic_female_any_t_a_p'] & [`bbal_vic_female_any_fe_t_a_p'] & & & [`bbal_d_dist_1_t_a_p'] & [`bbal_d_dist_1_fe_t_a_p'] \\
tex Any White Complainant & `bbal_vic_white_any_t_a_b' & `bbal_vic_white_any_fe_t_a_F' & `bbal_vic_white_any_ymean' & District 2 & `bbal_d_dist_2_t_a_b' & `bbal_d_dist_2_fe_t_a_F' & `bbal_d_dist_2_ymean' \\
tex		& [`bbal_vic_white_any_t_a_p'] & [`bbal_vic_white_any_fe_t_a_p'] & & & [`bbal_d_dist_2_t_a_p'] & [`bbal_d_dist_2_fe_t_a_p'] \\
tex Any Complainant 35 or Older & `bbal_vic_old_t_a_b' & `bbal_vic_old_fe_t_a_F' & `bbal_vic_old_ymean' & District 3 & `bbal_d_dist_3_t_a_b' & `bbal_d_dist_3_fe_t_a_F' & `bbal_d_dist_3_ymean' \\
tex		& [`bbal_vic_old_t_a_p'] & [`bbal_vic_old_fe_t_a_p'] & & & [`bbal_d_dist_3_t_a_p'] & [`bbal_d_dist_3_fe_t_a_p'] \\
tex Accused Officer White & `bbal_acc_white_t_a_b' & `bbal_acc_white_fe_t_a_F' & `bbal_acc_white_ymean' & District 4 & `bbal_d_dist_4_t_a_b' & `bbal_d_dist_4_fe_t_a_F' & `bbal_d_dist_4_ymean' \\
tex 	& [`bbal_acc_white_t_a_p'] & [`bbal_acc_white_fe_t_a_p'] & & & [`bbal_d_dist_4_t_a_p'] & [`bbal_d_dist_4_fe_t_a_p'] \\
tex Accused Officer Male & `bbal_acc_male_t_a_b' & `bbal_acc_male_fe_t_a_F' & `bbal_acc_male_ymean' & District 5 & `bbal_d_dist_5_t_a_b' & `bbal_d_dist_5_fe_t_a_F' & `bbal_d_dist_5_ymean' \\
tex 	& [`bbal_acc_male_t_a_p'] & [`bbal_acc_male_fe_t_a_p'] & & & [`bbal_d_dist_5_t_a_p'] & [`bbal_d_dist_5_fe_t_a_p'] \\
tex Accused Officer 35+ & `bbal_acc_old_t_a_b' & `bbal_acc_old_fe_t_a_F' & `bbal_acc_old_ymean' & District 6 & `bbal_d_dist_6_t_a_b' & `bbal_d_dist_6_fe_t_a_F' & `bbal_d_dist_6_ymean' \\
tex 	& [`bbal_acc_old_t_a_p'] & [`bbal_acc_old_fe_t_a_p'] & & & [`bbal_d_dist_6_t_a_p'] & [`bbal_d_dist_6_fe_t_a_p'] \\
tex Accused Officer Tenure & `bbal_tenure_t_a_b' & `bbal_tenure_fe_t_a_F' & `bbal_tenure_ymean' & District 7 & `bbal_d_dist_7_t_a_b' & `bbal_d_dist_7_fe_t_a_F' & `bbal_d_dist_7_ymean' \\
tex 	& [`bbal_tenure_t_a_p'] & [`bbal_tenure_fe_t_a_p'] & & & [`bbal_d_dist_7_t_a_p'] & [`bbal_d_dist_7_fe_t_a_p'] \\
tex Civil Rights Complaint & `bbal_cat_3_t_a_b' & `bbal_cat_3_fe_t_a_F' & `bbal_cat_3_ymean' & District 8 & `bbal_d_dist_8_t_a_b' & `bbal_d_dist_8_fe_t_a_F' & `bbal_d_dist_8_ymean' \\
tex 	& [`bbal_cat_3_t_a_p'] & [`bbal_cat_3_fe_t_a_p'] & & & [`bbal_d_dist_8_t_a_p'] & [`bbal_d_dist_8_fe_t_a_p'] \\
tex Force Complaint & `bbal_cat_4_t_a_b' & `bbal_cat_4_fe_t_a_F' & `bbal_cat_4_ymean' & District 9 & `bbal_d_dist_9_t_a_b' & `bbal_d_dist_9_fe_t_a_F' & `bbal_d_dist_9_ymean' \\
tex 	& [`bbal_cat_4_t_a_p'] & [`bbal_cat_4_fe_t_a_p'] & & & [`bbal_d_dist_9_t_a_p'] & [`bbal_d_dist_9_fe_t_a_p'] \\
tex Any Prior Complaints & `bbal_any_p_c_t_a_b' & `bbal_any_p_c_fe_t_a_F' & `bbal_any_p_c_ymean' & District 10 & `bbal_d_dist_10_t_a_b' & `bbal_d_dist_10_fe_t_a_F' & `bbal_d_dist_10_ymean' \\
tex 	& [`bbal_any_p_c_t_a_p'] & [`bbal_any_p_c_fe_t_a_p'] & & & [`bbal_d_dist_10_t_a_p'] & [`bbal_d_dist_10_fe_t_a_p'] \\
tex Monthly Arrests in Past Year & `bbal_arrests_pre_t_a_b' & `bbal_arrests_pre_fe_t_a_F' & `bbal_arrests_pre_ymean' & District 11 & `bbal_d_dist_11_t_a_b' & `bbal_d_dist_11_fe_t_a_F' & `bbal_d_dist_11_ymean' \\
tex 	& [`bbal_arrests_pre_t_a_p'] & [`bbal_arrests_pre_fe_t_a_p'] & & & [`bbal_d_dist_11_t_a_p'] & [`bbal_d_dist_11_fe_t_a_p'] \\
tex Monthly Complaints in Past Year & `bbal_complaints_pre_t_a_b' & `bbal_complaints_pre_fe_t_a_F' & `bbal_complaints_pre_ymean' & District 12 & `bbal_d_dist_12_t_a_b' & `bbal_d_dist_12_fe_t_a_F' & `bbal_d_dist_12_ymean' \\
tex 	& [`bbal_complaints_pre_t_a_p'] & [`bbal_complaints_pre_fe_t_a_p'] & & & [`bbal_d_dist_12_t_a_p'] & [`bbal_d_dist_12_fe_t_a_p'] \\
tex Incident on Sunday & `bbal_d_inc_dow_0_t_a_b' & `bbal_d_inc_dow_0_fe_t_a_F' & `bbal_d_inc_dow_0_ymean' & District 13 & `bbal_d_dist_13_t_a_b' & `bbal_d_dist_13_fe_t_a_F' & `bbal_d_dist_13_ymean' \\
tex 	& [`bbal_d_inc_dow_0_t_a_p'] & [`bbal_d_inc_dow_0_fe_t_a_p'] & & & [`bbal_d_dist_13_t_a_p'] & [`bbal_d_dist_13_fe_t_a_p'] \\
tex Incident on Monday & `bbal_d_inc_dow_1_t_a_b' & `bbal_d_inc_dow_1_fe_t_a_F' & `bbal_d_inc_dow_1_ymean' & District 14 & `bbal_d_dist_14_t_a_b' & `bbal_d_dist_14_fe_t_a_F' & `bbal_d_dist_14_ymean' \\
tex 	& [`bbal_d_inc_dow_1_t_a_p'] & [`bbal_d_inc_dow_1_fe_t_a_p'] & & & [`bbal_d_dist_14_t_a_p'] & [`bbal_d_dist_14_fe_t_a_p'] \\
tex Incident on Tuesday & `bbal_d_inc_dow_2_t_a_b' & `bbal_d_inc_dow_2_fe_t_a_F' & `bbal_d_inc_dow_2_ymean' & District 15 & `bbal_d_dist_15_t_a_b' & `bbal_d_dist_15_fe_t_a_F' & `bbal_d_dist_15_ymean' \\
tex 	& [`bbal_d_inc_dow_2_t_a_p'] & [`bbal_d_inc_dow_2_fe_t_a_p'] & & & [`bbal_d_dist_15_t_a_p'] & [`bbal_d_dist_15_fe_t_a_p'] \\
tex Incident on Wednesday & `bbal_d_inc_dow_3_t_a_b' & `bbal_d_inc_dow_3_fe_t_a_F' & `bbal_d_inc_dow_3_ymean' & District 16 & `bbal_d_dist_16_t_a_b' & `bbal_d_dist_16_fe_t_a_F' & `bbal_d_dist_16_ymean' \\
tex 	& [`bbal_d_inc_dow_3_t_a_p'] & [`bbal_d_inc_dow_3_fe_t_a_p'] & & & [`bbal_d_dist_16_t_a_p'] & [`bbal_d_dist_16_fe_t_a_p'] \\
tex Incident on Thursday & `bbal_d_inc_dow_4_t_a_b' & `bbal_d_inc_dow_4_fe_t_a_F' & `bbal_d_inc_dow_4_ymean' & District 17 & `bbal_d_dist_17_t_a_b' & `bbal_d_dist_17_fe_t_a_F' & `bbal_d_dist_17_ymean' \\
tex 	& [`bbal_d_inc_dow_4_t_a_p'] & [`bbal_d_inc_dow_4_fe_t_a_p'] & & & [`bbal_d_dist_17_t_a_p'] & [`bbal_d_dist_17_fe_t_a_p'] \\
tex Incident on Friday & `bbal_d_inc_dow_5_t_a_b' & `bbal_d_inc_dow_5_fe_t_a_F' & `bbal_d_inc_dow_5_ymean' & District 18 & `bbal_d_dist_18_t_a_b' & `bbal_d_dist_18_fe_t_a_F' & `bbal_d_dist_18_ymean' \\
tex 	& [`bbal_d_inc_dow_5_t_a_p'] & [`bbal_d_inc_dow_5_fe_t_a_p'] & & & [`bbal_d_dist_18_t_a_p'] & [`bbal_d_dist_18_fe_t_a_p'] \\
tex Incident on Saturday & `bbal_d_inc_dow_6_t_a_b' & `bbal_d_inc_dow_6_fe_t_a_F' & `bbal_d_inc_dow_6_ymean' & District 19 & `bbal_d_dist_19_t_a_b' & `bbal_d_dist_19_fe_t_a_F' & `bbal_d_dist_19_ymean' \\
tex 	& [`bbal_d_inc_dow_6_t_a_p'] & [`bbal_d_inc_dow_6_fe_t_a_p'] & & & [`bbal_d_dist_19_t_a_p'] & [`bbal_d_dist_19_fe_t_a_p'] \\
tex District 20 & `bbal_d_dist_20_t_a_b' & `bbal_d_dist_20_fe_t_a_F' & `bbal_d_dist_20_ymean' & District 21 & `bbal_d_dist_21_t_a_b' & `bbal_d_dist_21_fe_t_a_F' & `bbal_d_dist_21_ymean' \\
tex 	& [`bbal_d_dist_20_t_a_p'] & [`bbal_d_dist_20_fe_t_a_p'] & & & [`bbal_d_dist_21_t_a_p'] & [`bbal_d_dist_21_fe_t_a_p'] \\
tex District 22 & `bbal_d_dist_22_t_a_b' & `bbal_d_dist_22_fe_t_a_F' & `bbal_d_dist_22_ymean' & District 23 & `bbal_d_dist_23_t_a_b' & `bbal_d_dist_23_fe_t_a_F' & `bbal_d_dist_23_ymean' \\
tex 	& [`bbal_d_dist_22_t_a_p'] & [`bbal_d_dist_22_fe_t_a_p'] & & & [`bbal_d_dist_23_t_a_p'] & [`bbal_d_dist_23_fe_t_a_p'] \\
tex District 24 & `bbal_d_dist_24_t_a_b' & `bbal_d_dist_24_fe_t_a_F' & `bbal_d_dist_24_ymean' & District 25 & `bbal_d_dist_25_t_a_b' & `bbal_d_dist_25_fe_t_a_F' & `bbal_d_dist_25_ymean' \\
tex 	& [`bbal_d_dist_24_t_a_p'] & [`bbal_d_dist_24_fe_t_a_p'] & & &  [`bbal_d_dist_25_t_a_p'] & [`bbal_d_dist_25_fe_t_a_p'] \\
tex \hline
tex Joint F-Test & `bbal_joint_t_a_F' & \\
tex 	& [`bbal_joint_t_a_p'] & \\
tex \hline\hline
tex \end{tabular}
texdoc close

texdoc init ${rep_root}/output/tables/reg_balance_after_laquan.tex, replace force
tex \begin{tabular}{l*{7}{c}}
tex \hline\hline
tex \multicolumn{1}{c}{Covariate}&\multicolumn{1}{c}{LOM}&\multicolumn{1}{c}{FEs}&\multicolumn{1}{c}{Y Mean}&\multicolumn{1}{c}{Covariate}&\multicolumn{1}{c}{LOM}&\multicolumn{1}{c}{FEs}&\multicolumn{1}{c}{Y  Mean} \\
tex \hline
tex Any Female Complainant & `abal_vic_female_any_t_a_b' & `abal_vic_female_any_fe_t_a_F' & `abal_vic_female_any_ymean' & District 1 & `abal_d_dist_1_t_a_b' & `abal_d_dist_1_fe_t_a_F' & `abal_d_dist_1_ymean' \\
tex 	& [`abal_vic_female_any_t_a_p'] & [`abal_vic_female_any_fe_t_a_p'] & & & [`abal_d_dist_1_t_a_p'] & [`abal_d_dist_1_fe_t_a_p'] \\
tex Any White Complainant & `abal_vic_white_any_t_a_b' & `abal_vic_white_any_fe_t_a_F' & `abal_vic_white_any_ymean' & District 2 & `abal_d_dist_2_t_a_b' & `abal_d_dist_2_fe_t_a_F' & `abal_d_dist_2_ymean' \\
tex		& [`abal_vic_white_any_t_a_p'] & [`abal_vic_white_any_fe_t_a_p'] & & & [`abal_d_dist_2_t_a_p'] & [`abal_d_dist_2_fe_t_a_p'] \\
tex Any Complainant 35 or Older & `abal_vic_old_t_a_b' & `abal_vic_old_fe_t_a_F' & `abal_vic_old_ymean' & District 3 & `abal_d_dist_3_t_a_b' & `abal_d_dist_3_fe_t_a_F' & `abal_d_dist_3_ymean' \\
tex		& [`abal_vic_old_t_a_p'] & [`abal_vic_old_fe_t_a_p'] & & & [`abal_d_dist_3_t_a_p'] & [`abal_d_dist_3_fe_t_a_p'] \\
tex Accused Officer White & `abal_acc_white_t_a_b' & `abal_acc_white_fe_t_a_F' & `abal_acc_white_ymean' & District 4 & `abal_d_dist_4_t_a_b' & `abal_d_dist_4_fe_t_a_F' & `abal_d_dist_4_ymean' \\
tex 	& [`abal_acc_white_t_a_p'] & [`abal_acc_white_fe_t_a_p'] & & & [`abal_d_dist_4_t_a_p'] & [`abal_d_dist_4_fe_t_a_p'] \\
tex Accused Officer Male & `abal_acc_male_t_a_b' & `abal_acc_male_fe_t_a_F' & `abal_acc_male_ymean' & District 5 & `abal_d_dist_5_t_a_b' & `abal_d_dist_5_fe_t_a_F' & `abal_d_dist_5_ymean' \\
tex 	& [`abal_acc_male_t_a_p'] & [`abal_acc_male_fe_t_a_p'] & & & [`abal_d_dist_5_t_a_p'] & [`abal_d_dist_5_fe_t_a_p'] \\
tex Accused Officer 35+ & `abal_acc_old_t_a_b' & `abal_acc_old_fe_t_a_F' & `abal_acc_old_ymean' & District 6 & `abal_d_dist_6_t_a_b' & `abal_d_dist_6_fe_t_a_F' & `abal_d_dist_6_ymean' \\
tex 	& [`abal_acc_old_t_a_p'] & [`abal_acc_old_fe_t_a_p'] & & & [`abal_d_dist_6_t_a_p'] & [`abal_d_dist_6_fe_t_a_p'] \\
tex Accused Officer Tenure & `abal_tenure_t_a_b' & `abal_tenure_fe_t_a_F' & `abal_tenure_ymean' & District 7 & `abal_d_dist_7_t_a_b' & `abal_d_dist_7_fe_t_a_F' & `abal_d_dist_7_ymean' \\
tex 	& [`abal_tenure_t_a_p'] & [`abal_tenure_fe_t_a_p'] & & & [`abal_d_dist_7_t_a_p'] & [`abal_d_dist_7_fe_t_a_p'] \\
tex Civil Rights Complaint & `abal_cat_3_t_a_b' & `abal_cat_3_fe_t_a_F' & `abal_cat_3_ymean' & District 8 & `abal_d_dist_8_t_a_b' & `abal_d_dist_8_fe_t_a_F' & `abal_d_dist_8_ymean' \\
tex 	& [`abal_cat_3_t_a_p'] & [`abal_cat_3_fe_t_a_p'] & & & [`abal_d_dist_8_t_a_p'] & [`abal_d_dist_8_fe_t_a_p'] \\
tex Force Complaint & `abal_cat_4_t_a_b' & `abal_cat_4_fe_t_a_F' & `abal_cat_4_ymean' & District 9 & `abal_d_dist_9_t_a_b' & `abal_d_dist_9_fe_t_a_F' & `abal_d_dist_9_ymean' \\
tex 	& [`abal_cat_4_t_a_p'] & [`abal_cat_4_fe_t_a_p'] & & & [`abal_d_dist_9_t_a_p'] & [`abal_d_dist_9_fe_t_a_p'] \\
tex Any Prior Complaints & `abal_any_p_c_t_a_b' & `abal_any_p_c_fe_t_a_F' & `abal_any_p_c_ymean' & District 10 & `abal_d_dist_10_t_a_b' & `abal_d_dist_10_fe_t_a_F' & `abal_d_dist_10_ymean' \\
tex 	& [`abal_any_p_c_t_a_p'] & [`abal_any_p_c_fe_t_a_p'] & & & [`abal_d_dist_10_t_a_p'] & [`abal_d_dist_10_fe_t_a_p'] \\
tex Monthly Arrests in Past Year & `abal_arrests_pre_t_a_b' & `abal_arrests_pre_fe_t_a_F' & `abal_arrests_pre_ymean' & District 11 & `abal_d_dist_11_t_a_b' & `abal_d_dist_11_fe_t_a_F' & `abal_d_dist_11_ymean' \\
tex 	& [`abal_arrests_pre_t_a_p'] & [`abal_arrests_pre_fe_t_a_p'] & & & [`abal_d_dist_11_t_a_p'] & [`abal_d_dist_11_fe_t_a_p'] \\
tex Monthly Complaints in Past Year & `abal_complaints_pre_t_a_b' & `abal_complaints_pre_fe_t_a_F' & `abal_complaints_pre_ymean' & District 12 & `abal_d_dist_12_t_a_b' & `abal_d_dist_12_fe_t_a_F' & `abal_d_dist_12_ymean' \\
tex 	& [`abal_complaints_pre_t_a_p'] & [`abal_complaints_pre_fe_t_a_p'] & & & [`abal_d_dist_12_t_a_p'] & [`abal_d_dist_12_fe_t_a_p'] \\
tex Incident on Sunday & `abal_d_inc_dow_0_t_a_b' & `abal_d_inc_dow_0_fe_t_a_F' & `abal_d_inc_dow_0_ymean' & District 13 & `abal_d_dist_13_t_a_b' & `abal_d_dist_13_fe_t_a_F' & `abal_d_dist_13_ymean' \\
tex 	& [`abal_d_inc_dow_0_t_a_p'] & [`abal_d_inc_dow_0_fe_t_a_p'] & & & [`abal_d_dist_13_t_a_p'] & [`abal_d_dist_13_fe_t_a_p'] \\
tex Incident on Monday & `abal_d_inc_dow_1_t_a_b' & `abal_d_inc_dow_1_fe_t_a_F' & `abal_d_inc_dow_1_ymean' & District 14 & `abal_d_dist_14_t_a_b' & `abal_d_dist_14_fe_t_a_F' & `abal_d_dist_14_ymean' \\
tex 	& [`abal_d_inc_dow_1_t_a_p'] & [`abal_d_inc_dow_1_fe_t_a_p'] & & & [`abal_d_dist_14_t_a_p'] & [`abal_d_dist_14_fe_t_a_p'] \\
tex Incident on Tuesday & `abal_d_inc_dow_2_t_a_b' & `abal_d_inc_dow_2_fe_t_a_F' & `abal_d_inc_dow_2_ymean' & District 15 & `abal_d_dist_15_t_a_b' & `abal_d_dist_15_fe_t_a_F' & `abal_d_dist_15_ymean' \\
tex 	& [`abal_d_inc_dow_2_t_a_p'] & [`abal_d_inc_dow_2_fe_t_a_p'] & & & [`abal_d_dist_15_t_a_p'] & [`abal_d_dist_15_fe_t_a_p'] \\
tex Incident on Wednesday & `abal_d_inc_dow_3_t_a_b' & `abal_d_inc_dow_3_fe_t_a_F' & `abal_d_inc_dow_3_ymean' & District 16 & `abal_d_dist_16_t_a_b' & `abal_d_dist_16_fe_t_a_F' & `abal_d_dist_16_ymean' \\
tex 	& [`abal_d_inc_dow_3_t_a_p'] & [`abal_d_inc_dow_3_fe_t_a_p'] & & & [`abal_d_dist_16_t_a_p'] & [`abal_d_dist_16_fe_t_a_p'] \\
tex Incident on Thursday & `abal_d_inc_dow_4_t_a_b' & `abal_d_inc_dow_4_fe_t_a_F' & `abal_d_inc_dow_4_ymean' & District 17 & `abal_d_dist_17_t_a_b' & `abal_d_dist_17_fe_t_a_F' & `abal_d_dist_17_ymean' \\
tex 	& [`abal_d_inc_dow_4_t_a_p'] & [`abal_d_inc_dow_4_fe_t_a_p'] & & & [`abal_d_dist_17_t_a_p'] & [`abal_d_dist_17_fe_t_a_p'] \\
tex Incident on Friday & `abal_d_inc_dow_5_t_a_b' & `abal_d_inc_dow_5_fe_t_a_F' & `abal_d_inc_dow_5_ymean' & District 18 & `abal_d_dist_18_t_a_b' & `abal_d_dist_18_fe_t_a_F' & `abal_d_dist_18_ymean' \\
tex 	& [`abal_d_inc_dow_5_t_a_p'] & [`abal_d_inc_dow_5_fe_t_a_p'] & & & [`abal_d_dist_18_t_a_p'] & [`abal_d_dist_18_fe_t_a_p'] \\
tex Incident on Saturday & `abal_d_inc_dow_6_t_a_b' & `abal_d_inc_dow_6_fe_t_a_F' & `abal_d_inc_dow_6_ymean' & District 19 & `abal_d_dist_19_t_a_b' & `abal_d_dist_19_fe_t_a_F' & `abal_d_dist_19_ymean' \\
tex 	& [`abal_d_inc_dow_6_t_a_p'] & [`abal_d_inc_dow_6_fe_t_a_p'] & & & [`abal_d_dist_19_t_a_p'] & [`abal_d_dist_19_fe_t_a_p'] \\
tex District 20 & `abal_d_dist_20_t_a_b' & `abal_d_dist_20_fe_t_a_F' & `abal_d_dist_20_ymean' & District 21 & `abal_d_dist_21_t_a_b' & `abal_d_dist_21_fe_t_a_F' & `abal_d_dist_21_ymean' \\
tex 	& [`abal_d_dist_20_t_a_p'] & [`abal_d_dist_20_fe_t_a_p'] & & & [`abal_d_dist_21_t_a_p'] & [`abal_d_dist_21_fe_t_a_p'] \\
tex District 22 & `abal_d_dist_22_t_a_b' & `abal_d_dist_22_fe_t_a_F' & `abal_d_dist_22_ymean' & District 23 & `abal_d_dist_23_t_a_b' & `abal_d_dist_23_fe_t_a_F' & `abal_d_dist_23_ymean' \\
tex 	& [`abal_d_dist_22_t_a_p'] & [`abal_d_dist_22_fe_t_a_p'] & & & [`abal_d_dist_23_t_a_p'] & [`abal_d_dist_23_fe_t_a_p'] \\
tex District 24 & `abal_d_dist_24_t_a_b' & `abal_d_dist_24_fe_t_a_F' & `abal_d_dist_24_ymean' & District 25 & `abal_d_dist_25_t_a_b' & `abal_d_dist_25_fe_t_a_F' & `abal_d_dist_25_ymean' \\
tex 	& [`abal_d_dist_24_t_a_p'] & [`abal_d_dist_24_fe_t_a_p'] & & &  [`abal_d_dist_25_t_a_p'] & [`abal_d_dist_25_fe_t_a_p'] \\
tex \hline
tex Joint F-Test & `abal_joint_t_a_F' & \\
tex 	& [`abal_joint_t_a_p'] & \\
tex \hline\hline
tex \end{tabular}
texdoc close
/*
